<%if project%>
<span id=new_item>
<a href="#" class='admin' onclick="Element.hide('new_item');Element.show('indicator_new');new Ajax.Updater('new_cat','/categories/new/?project_id=<%=project.id%>&label=<%=label%>',{asychronous:true,evalScripts:true})"><%="New Category".t%></a>
</span>
<%else%>
<span id=new_item<%=(new_cat.nil? ? "" : "_" + new_cat)%>>
<a class='admin' href="#" onclick="Element.hide('new_item<%=(new_cat.nil? ? "" : "_" + new_cat)%>');Element.show('indicator_new<%=(new_cat.nil? ? "" : "_" + new_cat)%>');new Ajax.Updater('new_cat<%=(new_cat.nil? ? "" : "_" + new_cat)%>','/categories/new/?company_id=<%=company.id%>&label=<%=label%>&new_cat=<%=(new_cat.nil? ? "0" : new_cat)%>',{asychronous:true,evalScripts:true})"><%="New Category".t%></a>
</span>
<%end%>
<span class='edit_item'>
<%=indicator('new' + (new_cat.nil? ? "" : "_" + new_cat))%>
</span>
